//
//  IWMessageViewController.m
//  8期微博
//
//  Created by apple on 14-8-31.
//  Copyright (c) 2014年 itcast. All rights reserved.
//

#import "TTMessageViewController.h"
#import "TTSearchBar.h"

@interface TTMessageViewController ()

@end

@implementation TTMessageViewController

- (void)viewDidLoad
{
    [super viewDidLoad];

    // 1.添加右边的按钮
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"发送私信" style:UIBarButtonItemStylePlain target:self action:@selector(composeBtnClick:)];
    
    TTSearchBar *s = [[TTSearchBar alloc] init];
    s.frame = CGRectMake(100, 100, 100, 30);
    [self.view addSubview:s];
}

- (void)composeBtnClick:(UIBarButtonItem *)item
{
    IWLog(@"发送私信");
}

@end
